﻿

using System;
using System.Runtime.Serialization;
using System.Collections.Generic;
using COM.Rights.Model;



namespace COM.Rights.BLL
{   
    public partial class TUser 
    {
        partial void OnBLLCreated() { ConfigName = "Rights"; }

        /// <summary>
        /// 取得用户名称
        /// </summary>
        /// <param name="Id"></param>
        /// <returns></returns>
        public string GetUserNameById(string Id)
        {
            TUserInfo model = dal.GetModel(Id);

            if (model != null && model.Name != null)
            {
                return model.Name;
            }

            return string.Empty;
        }

        /// <summary>
        /// 取得业务员列表
        /// </summary>
        /// <returns></returns>
        public List<TUserInfo> GetYeWu()
        {
            return dal.GetList("", "GID IN(SELECT TUser_GID FROM TOUTTTUser WHERE TOU_GID ='f0fc44bf-5ac5-94ec-da36-44d246b39e2d')", "", null);
        }
	}
}